<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>006-表单相关的新增</title>
	</head>
	<body>
		<form action="">
			账号：<input type="text" name="username" placeholder="请输入" required maxlength="10" pattern="\w{6,}" />
			<br />
			密码：<input type="password" name="password" />
			<br />
			性别：
			<input type="radio" name="gender" value="male" />男 <input type="radio" name="gender" value="female" />女
			<br />
			爱好：
			<input type="checkbox" name="hobby" value="sport" />运动
			<input type="checkbox" name="hobby" value="reading" />阅读
			<input type="checkbox" name="hobby" value="swimming" />游泳
			<br />
			其他：<textarea name="other" id=""></textarea>
		</form>
	</body>
</html>
